class CreatePayments < ActiveRecord::Migration
  def change
    create_table :payments do |t|
      t.integer :account_id
      t.integer :commerce_id
      t.float :amount
      t.references :category

      t.timestamps
    end
    add_index :payments, :category_id
  end
end
